//
//  CJTSecondCityTableViewCell.m
//  BreadTravel
//
//  Created by dllo on 15/12/23.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "CJTSecondCityTableViewCell.h"

@implementation CJTSecondCityTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self aaaa];
    }
    return self;
}

-(void)aaaa
{
    self.cityLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.cityLabel];
    [self.cityLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(@20);
        make.top.mas_equalTo(@20);
        make.right.mas_equalTo(@(-10));
        make.height.mas_equalTo(@20);
        
    }];

    UIImageView *imageViewaaa = [[UIImageView alloc] init];
    imageViewaaa.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:imageViewaaa];
    [imageViewaaa mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(@10);
        make.right.mas_equalTo(@(-10));
        make.bottom.mas_equalTo(self.contentView.mas_bottom);
        make.height.mas_equalTo(@1);
        
    }];


}

-(void)setCityName:(NSString *)cityName
{

    self.cityLabel.text = cityName;

}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
